package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallGiftCardOrder;
import org.linlinjava.litemall.db.domain.LitemallGiftCardOrderExample;

public interface LitemallGiftCardOrderMapper extends MPJBaseMapper<LitemallGiftCardOrder> {
    long countByExample(LitemallGiftCardOrderExample example);

    int deleteByExample(LitemallGiftCardOrderExample example);

    int deleteByPrimaryKey(Integer id);

    //int insert(LitemallGiftCardOrder record);

    int insertSelective(LitemallGiftCardOrder record);

    LitemallGiftCardOrder selectOneByExample(LitemallGiftCardOrderExample example);

    LitemallGiftCardOrder selectOneByExampleSelective(@Param("example") LitemallGiftCardOrderExample example, @Param("selective") LitemallGiftCardOrder.Column ... selective);

    List<LitemallGiftCardOrder> selectByExampleSelective(@Param("example") LitemallGiftCardOrderExample example, @Param("selective") LitemallGiftCardOrder.Column ... selective);

    List<LitemallGiftCardOrder> selectByExample(LitemallGiftCardOrderExample example);

    LitemallGiftCardOrder selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGiftCardOrder.Column ... selective);

    LitemallGiftCardOrder selectByPrimaryKey(Integer id);

    LitemallGiftCardOrder selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") LitemallGiftCardOrder record, @Param("example") LitemallGiftCardOrderExample example);

    int updateByExample(@Param("record") LitemallGiftCardOrder record, @Param("example") LitemallGiftCardOrderExample example);

    int updateByPrimaryKeySelective(LitemallGiftCardOrder record);

    int updateByPrimaryKey(LitemallGiftCardOrder record);

    int logicalDeleteByExample(@Param("example") LitemallGiftCardOrderExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}